<template>
  <div class="app">
    <h1>详情</h1>
    <img :src="value.coverImgUrl" alt />
    <div class>{{value.name}}</div>
    <div class>{{value.description}}</div>
    <div class>
      <span>收藏数：</span>
      <span>{{value.commentCount}}</span>
    </div>
    <div class>
      <span>分享次数：</span>
      <span>{{value.shareCount}}</span>
    </div>
    <div class>
      <span>其他信息：</span>
      <span>{{value.tags}}</span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: {}
    };
  },
  mounted() {
    this.value = this.$route.query.value;
    console.log(this.value);
  }
};
</script>

<style scoped>
.app {
  width: 200px;
}
.app div{
    margin: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}
img {
  width: 200px;
}
</style>